package com.felight.ems.map;

import com.felight.ems.db.DbManager;

public class Registration {
	
	private int id;
	private String password;
	private String email;
	private DbManager dbManager = null;
	
	
	public Registration(){
		
	}
	
	public Registration(int id, String email, String password){
		
	}
	
	public Registration(String email, String password) {
		this.email = email;
		this.password = password;
	}
	
	public boolean saveUserDetails(){
		dbManager = new DbManager();
		String query = "INSERT INTO \'user_dummy\'(\'email\',\'password\')"+
		"VALUES ( \'"+ this.email + "\',  \'" + this.password+"\')";
		return dbManager.insert(query);
	}
	
	public boolean authorizeUse(){
	
		return true;
	}
	
	public boolean saveRegInformation(){
		
		//call insert method in DbManager Class
		
		return false;
	}

	
	

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getpassword() {
		return password;
	}

	public void setName(String password) {
		this.password = password;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
	
	
}
